<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%
String classId=request.getParameter("classId");
String[] title={"营养","扮靓","用品","娱乐"};
int pos=0;
if("A000".equals(classId)){
	pos=0;
}else if("B000".equals(classId)){
	pos=1;
}else if("C000".equals(classId)){
	pos=2;
}else if("D000".equals(classId)){
	pos=3;
}
request.setAttribute("classId", classId);
%>
        <div class="center_box">
        	<div class="center_box_nav">
            	<h1 class="clearfix">
                	<b class="center_nav_tt tt_age_0<%=pos+1 %>">宝宝<%=title[pos] %></b>                	
                    <span class="add_latest"><b>最新上线<c:forEach var="o" items="${newCountMap}"><c:if test="${classId==o.key}">${o.value}</c:if></c:forEach>件</b></span>
                </h1>
                <div class="center_nav_sub clearfix">
                	<span class="float_rg">
                		<c:forEach var="o" items="${hotClassMap}">
                		<c:if test="${classId==o.key}">
                		<c:forEach var="t" items="${o.value}">
                		<a href="javascript:clickClass('${t.classId}');">${t.className}</a>&nbsp;&nbsp;
                		</c:forEach>
                		</c:if>
                		</c:forEach>
                    </span>
                    <span id='lanSpan_${classId}'></span>                  
                </div>
             </div>
            <div class="center_opt">
 				<%-- 翻页顶部部分开始 --%>
				<div class="list_page_inner">
					<a href="javascript:_movePre('${classId}');"  id='preBt_top_${classId}' class="page_pre_unable"></a>
					<a href="javascript:_moveNext('${classId}');" id='nextBt_top_${classId}' class="page_next"></a>
				</div>
            </div>
            <div class="list_box">
            	<%-- 资讯列表部分开始 --%>
                <div class="context_list">
                    <h2><span class="context_tt context_tt_0<%=pos+1 %>"><%=title[pos] %>资讯</span></h2>
                    <ol>
                    	<c:forEach var="o" items="${msgMap}">
	                    	<c:if test="${classId==o.key}">
	                    	<c:forEach var="o" items="${o.value}" varStatus="status">
	                    	<li><a href="javascript:location.href='${ctx}/front!viewContextDetail.action?msgId=${o.msgId}';" title="${o.msgTitle}">${status.count}.${o.msgTitle}</a></li>
	                    	</c:forEach>
	                    	</c:if>
                    	</c:forEach>                    	                        
                    </ol>
                    <a href="javascript:location.href='${ctx}/front!viewContextList.action?classId=${classId}';" title="更多" class="context_list_more">更多&gt;&gt;</a>
                </div>
                <%-- 资讯列表部分结束 --%>           
                <%-- 商品列表部分开始 --%>
                <div class="bb_pd_list" id='goods_${classId}'></div>
                <%-- 商品列表部分结束 --%>                
                <%-- 翻页底部部分开始 --%>
				<div class="list_page">
					<div class="list_page_inner">
						<span>第</span>
						<span class="page_go">
							<input type="hidden" id="allPage_${classId}" value="1"/>
							<input type="text" id="page_${classId}" value="1"/><a href="javascript:_clickGo('${classId}');" class="page_go_bt"></a>
						</span>
						<span id="allPage_show_${classId}">页 共1页</span>                        
						<a href="javascript:_movePre('${classId}');"  id='preBt_${classId}' class="page_pre_unable"></a>
						<a href="javascript:_moveNext('${classId}');" id='nextBt_${classId}' class="page_next"></a>
					</div>                    
				</div>
				<%-- 翻页底部部分结束 --%>
            </div>
        </div>